#include <iostream>
#include <string.h>
using namespace std;
char str[100];
char n1[50], n2[50];
char c;
int zhengshu(char a[])
{
	int i;
	for (i = strlen(a) - 1; i >= 0; i--)
	{
		if (a[i] != '0')
		{
			break;
		}
	}
	for (; i >= 0; i--)
	{
		cout << a[i];
	}
	return 0;
}
int fenshu()
{
	zhengshu(n1);
	cout << c;
	zhengshu(n2);
	return 0;
}
int xiaoshu()
{
	int i=0,k;
	zhengshu(n1);
	cout << c;
	for (i = 0; i < strlen(n2); i++)
	{
		k = i;
		if (n2[i] != '0')
		{
			break;
		}
	}
	for (i = strlen(n2) - 1; i >= k; i--)
	{
		cout << n2[i];
	}
	return 0;
}
int baifenshu()
{
	zhengshu(n1);
	cout << c;
	return 0;
}
int main()
{
	int i=0,j=0;
	cin >> str;
	while (str[i] <='9'&&str[i]>='0')
	{
		n1[i] = str[i];
		i++;
	}
	c = str[i];
	i++;
	while (str[i] <= '9'&&str[i] >= '0')
	{
		n2[j] = str[i];
		i++;
		j++;
	}
	if (c == '.')
	{
		xiaoshu();
	}
	else if (c == '/')
	{
		fenshu();
	}
	else if (c == '%')
	{
		baifenshu();
	}
	else
	{
		zhengshu(n1);
	}
	system("pause");
	return 0;
}